//package cn.wowjoy.pda.android_pharmacy.ui.adapter;
//
//import android.content.Context;
//import android.support.v7.widget.RecyclerView;
//import android.util.Log;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.TextView;
//
//import java.util.List;
//
//import cn.wowjoy.pda.android_pharmacy.R;
//
///**
// * Created by sinyo on 2017/7/18.
// */
//
//public class SettingRvAdapter extends RecyclerView.Adapter<SettingRvAdapter.MyViewHolder> {
//   private Context mContext;
//    private LayoutInflater mLayoutInflater;
//    private List<MovieInfo.SubjectsEntity> mMovieInfos;
//
//    public SettingRvAdapter(Context context, List<MovieInfo.SubjectsEntity> movieInfos) {
//        mContext = context;
//        mMovieInfos = movieInfos;
//        mLayoutInflater=LayoutInflater.from(context);
//        Log.e("pxy", "SettingRvAdapter: "+movieInfos.size() );
//    }
//
//    @Override
//    public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//        return new MyViewHolder(mLayoutInflater.inflate(R.layout.item_rv_setting,parent,false));
//    }
//
//    @Override
//    public void onBindViewHolder(MyViewHolder holder, int position) {
//        if(null != mMovieInfos && mMovieInfos.size() != 0){
//            Log.e("pxy", "onBindViewHolder: " );
//            holder.mTextViewFirst.setText("第"+position+"部："+mMovieInfos.get(position).getTitle());
//        }
//    }
//
//    @Override
//    public int getItemCount() {
//        return mMovieInfos.size();
//    }
//
//
//
//    class MyViewHolder extends RecyclerView.ViewHolder {
//           TextView mTextViewFirst;
//           TextView mTextViewSecons;
//        public MyViewHolder(View itemView) {
//            super(itemView);
//            mTextViewSecons= (TextView) itemView.findViewById(R.id.tv_item_rv_setting_second);
//            mTextViewFirst= (TextView) itemView.findViewById(R.id.tv_item_rv_setting_first);
//        }
//    }
//}
